<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * detail.php
 * @author ranuandra
 *
 * 1 Mei 2012 09:44:38
 *
 * 
 */
?>
<div class="content">
	<table class="data">
		<tr>
			<td>
				<h3><?php echo $data->mstpelamar->nama_lengkap ?></h3>
                    <?php
                           $d1 = (is_string($data->mstpelamar->tgl_lahir) ? strtotime($data->mstpelamar->tgl_lahir) : $data->mstpelamar->tgl_lahir);
						   $d2 = (is_string(date("Y-m-d")) ? strtotime(date("Y-m-d")) : date("Y-m-d"));  
						   $diff_secs = abs($d2 - $d1);
                            		
                           echo floor($diff_secs / (3600 * 24 * 365.25))."<br/>";							
						   echo $data->mstpelamar->alamat_ktp." ".$data->mstpelamar->kota_ktp.", ".$data->mstpelamar->propinsi_ktp.", ".$data->mstpelamar->kodepos_ktp."<br/>";
						   echo $data->mstpelamar->user->email." Telp:".$data->mstpelamar->mobilephone;
                     ?>			
			</td>
			<td>
				<img src="<?php echo URL::base()?>assets/photo/<?php echo $data->mstpelamar->photo?>" />
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<h3>Pengalaman</h3>
				<ol>
				<?php 
					$pengalamans = $data->mstpelamar->pelamarpengalaman->find_all();
					foreach($pengalamans as $pengalaman)
					{
						echo "<li>".$pengalaman->institusi."</li>";
					}
				?>
				</ol>
			</td>
		</tr>
	</table>
	
	
</div>